package com.sun.dream.fish.frontmodel.resources;

import java.util.Locale;

/**
 * Description:
 * Created By ljl on 2023/12/19.
 */
public class DSFErrorMessage extends DSFMessageLoader {

    private DSFErrorMessage() {
        super("dsfFormat/i18n/error/errorFormat");
    }

    public static DSFErrorMessage getInstance() {
        return DSFErrorMessage.InnerInstance.INSTANCE;
    }

    private static class InnerInstance {
        private static final DSFErrorMessage INSTANCE = new DSFErrorMessage();
    }

    public String getMessageWithUS(String key, Object... message) {
        return getMessageByLocale(key, Locale.US, message);
    }

}